/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';

const CREATE_COURSE_USED = '/yoocaApi/write-off/createCourseUsed'
const UPDATE_COURSE_USED = '/yoocaApi/write-off/updateCourseUsed'
const QUERY_COURSE_USED = '/yoocaApi/write-off/queryCourseUsed'

export async function createCourseUsed(
  body?: CourseUsedAPI.CreateCourseUsedParam,
) {
  return request<CommonAPI.Result<null>>(CREATE_COURSE_USED, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function updateCourseUsed(
  body?: CourseUsedAPI.UpdateCourseUsedParam,
) {
  return request<CommonAPI.Result<null>>(UPDATE_COURSE_USED, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function queryCourseUsed(
  body?: CourseUsedAPI.QueryCourseUsedParam,
) {
  return request<CommonAPI.Result<CourseUsedAPI.QueryCourseUsedResp>>(QUERY_COURSE_USED, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}
